{% extends "microblog/base.html" %}

{% load i18n microblog_utils %}

{% block title %}{{ home_user }}{{ block.super }}{% endblock title %}

{% block meta %}{{ block.super }}
<link rel="alternate" type="application/rss+xml" title="RSS Feeds" href="feeds/rss/"/>
<link rel="alternate" type="application/rss+xml" title="Atom Feeds" href="feeds/atom/"/>
{% endblock meta %}

{% block content %}{{ block.super }}

{% if user.is_authenticated %}

{% ifequal user home_user %}
    {% trans "This is you" %}
{% else %}
    {% if user|has_connection:home_user %}
        {% trans "You are connected to this user" %}
    {% else %}
        <a href="{{ MICROBLOG_URL_BASE }}c/add/{{ home_user.username }}/">{% trans "Connect as friend" %}</a>
    {% endif %}
{% endifequal %}

<div class"connections">
    {% if connections.count %}
    <h2>Connections</h2>

    {% include "microblog/connections_list.html" %}
    {% else %}
    <p>{% trans "No connections found" %}</p>
    {% endif %}
</div>

{% endif %}

{% endblock content %}
